package com.cx.service.impl;
import com.cx.mapper.HotelMapper;
import com.cx.mapper.OrderFormMapper;
import com.cx.mapper.UserMapper;
import com.cx.pojo.Hotel;
import com.cx.pojo.OrderForm;
import com.cx.service.OrderFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service

public class OrderFormServiceImpl implements OrderFormService {

    @Autowired
    HotelMapper hotelMapper;
    @Autowired
    OrderFormMapper orderFormMapper;
    @Autowired
    UserMapper userMapper;



    @Override
    public Hotel selectHotelById(Integer id) {
        return hotelMapper.selectByPrimaryKey(id);
    }

    @Override
    public int insertOrderForm(OrderForm orderForm) {
        return orderFormMapper.insertOrderForm(orderForm);
    }
}